import type { RouteRecordRaw } from 'vue-router'
import { createRouter, createWebHistory } from 'vue-router'
import DiskMonitoring from '@/views/DiskMonitoring.vue'
import ProcessMonitoring from '@/views/ProcessMonitoring.vue'
import DiskIOSpeedMonitoring from '@/views/DiskIOSpeedMonitoring.vue'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'DiskMonitoring',
    component: DiskMonitoring,
  },
  {
    path: '/process',
    name: 'ProcessMonitoring',
    component: ProcessMonitoring,
  },
  {
    path: '/io-speed',
    name: 'DiskIOSpeedMonitoring',
    component: DiskIOSpeedMonitoring,
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
